# coding: utf-8

from weixin import WXAPPAPI
from me.settings import *


api = WXAPPAPI(appid=WXAPP_ID,
               app_secret=WXAPP_KEY)


def exchange_code_for_session_key(code):
    session_info = api.exchange_code_for_session_key(code=code)
    return session_info